#pragma once
#include "GameWindowMgr.h"
#include "GameTestWnd.h"
#include "GameTestWnd2.h"
#include "GameRollCardWnd.h"
#include "GameBugTestWnd.h"
#include "GameMsgBoxWindow.h"

extern CGameWindowMgr g_kWndMgr;

template<class T>
void CreateGameWindow(const string& rkName,int iX,int iY,int iWidth,int iHeight,const string& rkUserData = "")
{
	if (g_kWndMgr.IsExistWnd(rkName))
	{
		return;
	}

	T* pkWnd = new T();
	if (pkWnd == NULL)
	{
		return;
	}

	pkWnd->Create(rkName,iX,iY,iWidth,iHeight,NULL,rkUserData);
	g_kWndMgr.AddWindow(pkWnd);
	return;
}